<table>
    <tbody>
        <tr class="prop">
            <td valign="top" class="name">
                <label for="objectName"><g:message code="workflowHistory.objectName" default="Object Name" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowHistoryInstance, field: 'objectName', 'errors')}">
                <g:textField name="objectName" maxlength="30" value="${fieldValue(bean: workflowHistoryInstance, field: 'objectName')}" />
            </td>
        </tr>
        <tr class="prop">
            <td valign="top" class="name">
                <label for="objectId"><g:message code="workflowHistory.objectId" default="Object Id" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowHistoryInstance, field: 'objectId', 'errors')}">
                <g:textField name="objectId" value="${fieldValue(bean: workflowHistoryInstance, field: 'objectId')}" />
            </td>
        </tr>
        <tr class="prop">
            <td valign="top" class="name">
                <label for="step"><g:message code="workflowHistory.step" default="Step" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowHistoryInstance, field: 'step', 'errors')}">
                <g:select name="step.id" from="${org.icress.fusion.wf.WorkflowStep.list()}" optionKey="id" value="${workflowHistoryInstance?.step?.id}" noSelection="['null': '']" />
            </td>
        </tr>
        <tr class="prop">
            <td valign="top" class="name">
                <label for="status"><g:message code="workflowHistory.status" default="Status" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowHistoryInstance, field: 'status', 'errors')}">
                <g:select name="status" from="${workflowHistoryInstance.constraints.status.inList}" value="${workflowHistoryInstance.status}" valueMessagePrefix="workflowHistory.status"  />
            </td>
        </tr>
        <tr class="prop">
            <td valign="top" class="name">
                <label for="description"><g:message code="workflowHistory.description" default="Description" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowHistoryInstance, field: 'description', 'errors')}">
                <g:textArea name="description" rows="5" cols="40" value="${fieldValue(bean: workflowHistoryInstance, field: 'description')}" />
            </td>
        </tr>
        <tr class="prop">
            <td valign="top" class="name">
                <label for="createdBy"><g:message code="workflowHistory.createdBy" default="Created By" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowHistoryInstance, field: 'createdBy', 'errors')}">
                <g:select name="createdBy.id" from="${org.icress.fusion.shiro.User.list()}" optionKey="id" value="${workflowHistoryInstance?.createdBy?.id}"  />
            </td>
        </tr>
        <tr class="prop">
            <td valign="top" class="name">
                <label for="lastModifiedBy"><g:message code="workflowHistory.lastModifiedBy" default="Last Modified By" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowHistoryInstance, field: 'lastModifiedBy', 'errors')}">
                <g:select name="lastModifiedBy.id" from="${org.icress.fusion.shiro.User.list()}" optionKey="id" value="${workflowHistoryInstance?.lastModifiedBy?.id}"  />
            </td>
        </tr>
        <tr class="prop">
            <td valign="top" class="name">
                <label for="dateCreated"><g:message code="workflowHistory.dateCreated" default="Date Created" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowHistoryInstance, field: 'dateCreated', 'errors')}">
                <g:datePicker name="dateCreated" value="${workflowHistoryInstance?.dateCreated}"  />
            </td>
        </tr>
        <tr class="prop">
            <td valign="top" class="name">
                <label for="lastUpdated"><g:message code="workflowHistory.lastUpdated" default="Last Updated" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: workflowHistoryInstance, field: 'lastUpdated', 'errors')}">
                <g:datePicker name="lastUpdated" value="${workflowHistoryInstance?.lastUpdated}"  />
            </td>
        </tr>
    </tbody>
</table>
